package com.cskaoyan.service;

import com.cskaoyan.dao.UserDao;
import org.springframework.stereotype.Component;

/**
 * @author stone
 * @date 2022/11/11 14:28
 */
@Component
public class UserServiceImpl implements UserService{

    UserDao userDao; // 之前给成员变量做过赋值 → set方法 → property子标签

    //形参：默认按照类型从容器中取出组件，给到这个形参
    //如果在形参写的这个类型的组件在容器中不止一个，额外指定组件id → @Qualifier
    public UserServiceImpl(UserDao userDao) {
        this.userDao = userDao;
    }
}
